package cn.ssm.dao;


import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import cn.ssm.pojo.Courses;
import cn.ssm.query.CoursesQuery;

@Repository("coursesMapper")
public interface CoursesMapper {
	public  List<Courses> selCourseInfo();
	
	public  List<CoursesQuery> selCoursesQueryInfo(@Param("form")int form,@Param("pageSize")int pageSize);
	
	public int selCourseCount();
	
	public  List<Courses> selCourseInfoById(@Param("id") Integer id);
	
	public  CoursesQuery selCourseById(@Param("id") Integer id);
	
	public int delCoueseById(@Param("id") Integer id);
	
	public int updateCourseById(Courses course);
	
	
	public int insertCourse(Courses course);

	
	public CoursesQuery selCourseByClassId(@Param("id") Integer id);
	
}
